package com.type.service;

import java.util.ArrayList;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.type.dao.DeptDAO;
import com.type.dao.EmpDAO;
import com.type.vo.DeptVO;
import com.type.vo.EmpVO;

@Service("typeThree2Service")
public class TypeThree2Service {
	
	@Resource(name="empDAO")
	private EmpDAO empDAO;//직원
	
	@Resource(name="deptDAO")
	private DeptDAO deptDAO;//부서
	

	/**
	 * emplist를 조회
	 * @return empList
	 */
	public ArrayList<EmpVO> selectEmpList(){
		return empDAO.selectEmpList();
	}

	/**
	 * deptlist를 조회
	 * @return empList
	 */
	public ArrayList<DeptVO> selectDeptList(){
		return deptDAO.selectDeptList();
	}
	
}
